<template>
  <div>
    hello world
    <slot v-for="slot in Object.keys(slotM)" :name="slot" age="123">
    </slot>
  </div>
</template>

<script setup lang="ts">
import { defineSlots } from "vue";

const slotM = defineSlots();
console.log("slotM的值为", slotM);
</script>

<style scoped></style>
